<template>
  <a-config-provider :locale="zhCN">
    <router-view />
  </a-config-provider>
</template>


<script lang="ts">
  import { provide } from 'vue';
  // import useMenuState, { MenuStateSymbol } from './layouts/use-menu-state';
  import { useFactorySelect, FactorySelectSymbol } from '@/components/factory-select/factory-select-hook';
  import zhCN from 'ant-design-vue/es/locale/zh_CN';

  export default {
    name: 'App',
    setup() {
      provide(FactorySelectSymbol, useFactorySelect());
      // const menuState = useMenuState({
      //   openKeys: [] as string[],
      //   selectedKeys: [] as string[]
      // });
      // provide(MenuStateSymbol, menuState);
      return { zhCN }
    },
  };
</script>
